<include file="Public:basehead"/>
<div class="content">
	<div class="cLineB">
              <h4 class="left">所有消息</h4>
              <div class="clr"></div>
          </div>
          <div class="cLine">
              <div class="pageNavigator left">
             以下是你的所有微信消息
            </div>
            <div class="clr"></div>
          </div>

	<div class="msgWrap">
	
            <TABLE class="ListProduct" border="0" cellSpacing="0" cellPadding="0" width="100%">
              <THEAD>
                <TR>
					
					<TH class="answer">名称</TH>
					<TH class="answer">请求内容</TH>
                    <TH  class="keywords" >请求时间</TH>
                    <TH class="category">回复状态</TH>
                </TR>
              </THEAD>
              <TBODY>
                <TR></TR>
				<volist name="wxmsgs" id="msg">
				<tr>
                  
                  <td>
                  	{cms>$subs[$msg['openid']]}
                  </td>
                  <td>{cms>$msg.msgcontent}</td>
                  <td><php>echo date('Y-m-d H:i:s',$msg['addtime']);</php></td>
                  <td>
                  	<if condition="$msg.status eq 0">
                  		<a style="text-decoration: underline;" href="{cms>:U('WxMsg/answer',array('id'=>$msg['id']))}">未回复</a> 
					<else />已回复
					</if>
                  </td>
                  
                  <!-- <td><php>
                  if(strlen($msg['response']) > 21){
                  	echo substr($msg['response'],0,20).'...';
                  }else{
                  	echo $msg['response'];
                  }
                  </php></td> -->
          			
                </tr>
				</volist>
                              
              </TBODY>
            </TABLE>
          </div>
          
          <div class="cLine">
            <div class="pageNavigator right">
                 <div class="pages">{cms>$page}</div>
              </div>
            <div class="clr"></div>
          </div>
</div>
<div class="clr"></div>
<include file="Public:footer"/>	